# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2023年02月23日
"""

import docx
myDocument=docx.Document('散文名篇.docx')

for myShape in myDocument.inline_shapes:
	myBlip=myShape._inline.graphic.graphicData.pic.blipFill.blip
	myID=myBlip.embed
	myImage=myDocument.part.related_parts[myID]
	myFile=open(myID+'.jpg','wb')
	myFile.write(myImage._blob)
	myFile.close()


# myDocument.save("02散文名篇.docx")
